# Makefile
CC = g++
CFLAGS = -g -Wall
SOURCES = main.cpp block.cpp qcow2.cpp utils.cpp osdep.cpp
TARGET = qcow2_tool

all: $(TARGET)

$(TARGET): $(SOURCES)
	$(CC) $(CFLAGS) -o $@ $(SOURCES)

clean:
	rm -f $(TARGET)

install: $(TARGET)
	cp $(TARGET) /usr/local/bin/

.PHONY: all clean install
